package cn.luojunhui.touchfish.windwos;

import com.intellij.ui.components.JBList;
import com.intellij.ui.components.JBScrollPane;

import javax.swing.*;
import java.awt.*;
import java.util.Vector;

public class Popup {
    private JPanel popup = new JPanel();
    private JList chapterList;
    private JScrollPane scorellPane;

    public JPanel getPopup() {
        return popup;
    }

    public void setPopup(JPanel popup) {
        this.popup = popup;
    }

    public JList getChapterList() {
        return chapterList;
    }

    public void setChapterList(JList chapterList) {
        this.chapterList = chapterList;
    }

    public JScrollPane getScorellPane() {
        return scorellPane;
    }

    public void setScorellPane(JScrollPane scorellPane) {
        this.scorellPane = scorellPane;
    }

    private void createUIComponents() {
        // TODO: place custom component creation code here
    }


    public static void main(String[] args) {
        JFrame frame = new JFrame("打大师傅大师傅大师傅");
        frame.setBounds(200,250,100,150);
        JPanel panel = new Popup().popup;
        JTextArea textArea = new JTextArea();
        textArea.append("21313");
//        textArea.setPreferredSize(new Dimension(400,400));
        panel.setPreferredSize(new Dimension(400,400));
        panel.add(textArea);
        frame.setContentPane(panel);
        frame.setLayout(new FlowLayout());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
}
